import axios from '../utils/aicchttp' // 导入http中创建的axios实例
const base_url = process.env.AICC_BASE_API
const inter_url = '/app-api/aicc/call/'
//呼叫模块电话接口
const aiccCallApi = {
// 获取通话记录
  getCallLogPage(param) {
    param.satoken=localStorage.getItem('token')
    let url = 'get-call-log'
    return axios.post(`${base_url}${inter_url}${url}`,param);
  },
  // 获取通话记录
  getCallLogDetail(param) {
    param.satoken=localStorage.getItem('token')
    let url = 'get-call-detail'
    return axios.post(`${base_url}${inter_url}${url}`,param);
  },
  // 获取通话记录ASR
  getCallAsr(param) {
    let url = 'get-call-asr'
    return axios.post(`${base_url}${inter_url}${url}`,param);
  },
  // 外呼
  callOut(param) {
    param.satoken=localStorage.getItem('token')
    let url = 'call-out'
    return axios.post(`${base_url}${inter_url}${url}`,param);
  },
  getFollowCall(param) {
    param.satoken=localStorage.getItem('token')
    let url = 'get-follow-call'
    return axios.post(`${base_url}${inter_url}${url}`,param);
  },
  getCallTap(param) {
    param.satoken=localStorage.getItem('token')
    let url = 'get-tap'
    return axios.post(`${base_url}${inter_url}${url}`,param);
  },
}
export default aiccCallApi
